package com.gxgeek.javabasic.base.integer;

/**
 * Created by gx on 2017/7/10.
 */
public class TestIntegerCache {
    public static void main(String[] args) {
        Integer i1 = 100;
        Integer i2 = 100;
        Integer i3 = 1000;
        Integer i4 = 1000;
        System.out.println(i1 == i2);
        System.out.println(i3 == i4);
        Integer i5 = new Integer(100);
        Integer i6 = new Integer(100);
        System.out.println(i5==i6);
        System.out.println(i1);
        System.out.println(i2);
        System.out.println(i3);
        System.out.println(i4);
        System.out.println(i5);
        System.out.println(i6);
//        String s = "100";
    }
}
